package com.kgc.community.service;

import com.github.pagehelper.PageInfo;
import com.kgc.community.pojo.Equipment;
import com.kgc.community.pojo.Village;

import java.util.List;


/**
 * @author dingChangXiao
 * @create 2020-11-29  17:02  com.kgc.community.service  null.java
 */

public interface DeviceService {
    /**
     * 查询
     * @param s
     * @param startTime
     * @param endTime
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Equipment> selectAllDevice(String s, String startTime, String endTime, Integer pageNum, Integer pageSize);

    /**
     * 删除单条
     * @param id
     * @return
     */
    int deleteDevice(Integer id);

    /**
     * 查询小区名称
     * @return
     */
    List<Village> selectVillageName();

    /**
     * 添加
     * @param equipment
     * @return
     */
    int addDevice(Equipment equipment);


    /**
     *  查询（修改）
     * @param equipmentId
     * @return
     */
    Equipment selectDevice(Integer equipmentId);


    /**
     * 修改（修改）
     * @param equipment
     * @return
     */
    int modifyDevice(Equipment equipment);
}
